import request from '@/utils/request'

// 查询园区车辆管理列表
export function listParkAdminVehicles(query) {
  return request({
    url: '/park/parkAdminVehicles/list',
    method: 'get',
    params: query
  })
}

// 查询园区车辆管理详细
export function getParkAdminVehicles(id) {
  return request({
    url: '/park/parkAdminVehicles/getInfo/' + id,
    method: 'get'
  })
}

// 新增园区车辆管理
export function addParkAdminVehicles(data) {
  return request({
    url: '/park/parkAdminVehicles/add',
    method: 'post',
    data: data
  })
}

// 修改园区车辆管理
export function updateParkAdminVehicles(data) {
  return request({
    url: '/park/parkAdminVehicles/edit',
    method: 'post',
    data: data
  })
}

export function auditParkAdminVehicles(data) {
  return request({
    url: '/park/parkAdminVehicles/audit',
    method: 'post',
    data: data
  })
}


// 删除园区车辆管理
export function delParkAdminVehicles(id) {
  return request({
    url: '/park/parkAdminVehicles/remove/' + id,
    method: 'get'
  })
}

// 发起审核
export function sendAuditParkAdminVehicles(id) {
  return request({
    url: '/park/parkAdminVehicles/sendAudit/' + id,
    method: 'get'
  })
}

//退回修改
export function rebackUpdate(id) {
  return request({
    url: '/park/parkAdminVehicles/rebackUpdate/' + id,
    method: 'get'
  })
}


// 导出园区车辆管理
export function exportParkAdminVehicles(query) {
  return request({
    url: '/park/parkAdminVehicles/export',
    method: 'get',
    params: query
  })
}
